<%@page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />

<form id="pagerForm" method="post" action="findSendEmail">
	<input type="hidden" name="pageNum" value="1" /> <input type="hidden"
		name="numPerPage" value="${numPerPage}" /> <input type="hidden"
		name="orderField" value="${orderField}" /> <input type="hidden"
		name="orderDirection" value="${orderDirection}" />
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);"
		action="findSendEmail" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td><input type="hidden" name="functionNum"
						value="hxlbookad0027"> <label> 发送起始日期： <input
							type="text" name="startTime" class="date" id="startTime"
							value="${startTime}" />
					</label></td>
					<td><label> 发送终止日期： <input type="text" id="endTime"
							name="endTime" class="date" value="${endTime}" />
					</label></td>
					<td><label> 管理员编号： <input type="text" id="fromUserId"
							name="fromUserId" value="${fromUserId}" />
					</label></td>
					<td><label>读者编号：</label> <input type="text" id="toUserId"
						name="toUserId" value="${toUserId}" /></td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">查看</button>
							</div>
						</div>
					</li>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button id="reset81">重置</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
		</ul>
	</div>
	<table class="table" layoutH="138" targetType="navTab" asc="asc"
		desc="desc">
		<thead>
			<tr>
				<th width="100" align="center">管理员编号</th>
				<th width="100" align="center">管理员姓名</th>
				<th width="150" align="center">管理员邮箱</th>
				<th width="100" align="center">读者编号</th>
				<th width="100" align="center">读者姓名</th>
				<th width="150" align="center">读者邮箱</th>
				<th width="150" align="center">发送时间</th>
				<th width="100" align="center">邮件主题</th>
				<th width="250" align="center">邮件附件</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator id="sendEmail" value="sendEmailList">
				<tr target="sid_user" rel="${sendEmail.id}">
					<td>${sendEmail.fromUserId}</td>
					<td>${sendEmail.fromUserName}</td>
					<td>${sendEmail.fromEmail}</td>
					<td>${sendEmail.toUserId}</td>
					<td>${sendEmail.toUserName}</td>
					<td>${sendEmail.toEamil}</td>
					<td>${sendEmail.sendTime}</td>
					<td>${sendEmail.theme}</td>
					<td>${sendEmail.attachFile}</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span> <select class="combox" name="numPerPage"
				onchange="navTabPageBreak({numPerPage:this.value})">
				<option <s:if test="numPerPage==1">selected="selected"</s:if>
					value="1">1</option>
				<option <s:if test="numPerPage==5">selected="selected"</s:if>
					value="5">5</option>
				<option <s:if test="numPerPage==10">selected="selected"</s:if>
					value="10">10</option>
				<option <s:if test="numPerPage==15">selected="selected"</s:if>
					value="15">15</option>
				<option <s:if test="numPerPage==20">selected="selected"</s:if>
					value="20">20</option>
			</select> <span>条，共${totalCount}条</span>
		</div>

		<div class="pagination" targetType="${targetType}"
			totalCount="${totalCount}" numPerPage="${numPerPage}"
			pageNumShown="10" currentPage="${pageNum}"></div>
	</div>
</div>

<script type="text/javascript">
$(function($) {
	$("#reset88").click(function() {
		$('#readerId').attr('value', "");
		$('#startTime').attr('value', "");
		$('#endTime').attr('value', "");
		$('#bookType').attr('value', "");
	});
});
</script>